use std::path::Path;
use std::{fs::File, io::Write};

pub fn write_to_file(file_name: &Path, content: &str) -> Result<(), std::io::Error> {
    let mut file = File::create(file_name)?;
    file.write_all(content.as_bytes())?;
    Ok(())
}
